package com.wedu.modules.dss.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * dss_device_information
 * @author 
 */
@Data
@TableName("dss_device_information")
public class DssDeviceInformationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 设备编号
     */
    @TableField(value="device_id")
    private String deviceId;

    /**
     * 车间名称
     */
    @TableField(value="workshop_name")
    private String workshopName;

    /**
     * 设备类型
     */
    @TableField(value="device_type")
    private String deviceType;

    /**
     * 设备名称
     */
    @TableField(value="device_name")
    private String deviceName;

    /**
     * 设备型号
     */
    @TableField(value="device_model")
    private String deviceModel;

    /**
     * 制造厂
     */
    private String factory;

    /**
     * 生产日期
     */
    @TableField(value="produce_time")
    private Date produceTime;

    /**
     * 使用开始日期
     */
    @TableField(value="start_use_time")
    private Date startUseTime;

    /**
     * 维保日期
     */
    @TableField(value="maintenance_time")
    private Date maintenanceTime;

    /**
     * 备注
     */
    private String notes;

    /**
     * 传感器ID
     */
    @TableField(value="sensor_id")
    private String  sensorId;
    /**
     * 视频
     */
    private String video;

    /**
     * 逻辑删除
     */
    @TableField(value="is_deleted")
    @TableLogic
    private Byte isDeleted;

    /**
     * 创建人ID
     */
    @TableField(value="create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private Date createTime;

    /**
     * 修改人ID
     */
    @TableField(value="update_by")
    private Long updateBy;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE,value = "update_time")
    private Date updateTime;

    @TableField("maintenance_plan")
    private String maintenancePlan;
    @TableField("maintenance_due_time")
    private Date maintenanceDueTime;
    @TableField("notice_time")
    private Date noticeTime;
    @TableField("maintenance_status")
    private Integer maintenanceStatus;
    @TableField("maintenance_cycle")
    private Integer maintenanceCycle;
    @TableField("advance_time")
    private Integer advanceTime;

    private static final long serialVersionUID = 1L;
}